thistle = gr.material({0.85, 0.75, 0.85}, {0.8, 0.8, 0.4}, 25)
firebrick = gr.material({0.7,0.13,0.13}, {1.0, 1.0, 1.0}, 25)
brown = gr.material({0.545,0.27,0.075}, {1.0, 1.0, 1.0}, 25)
yellow = gr.material({1.0,1.0,0}, {1.0, 1.0, 1.0}, 25)
blue = gr.material({0.514,0.435,1.0}, {1.0, 1.0, 1.0}, 25)

house = gr.node('house')

house_body = gr.cube('house_body')
house:add_child(house_body)
house_body:set_material(thistle)
house_body:scale(25, 5, 10)
house_body:translate(-0.5,0,0)

house_body_top = gr.cube('house_body_top')
house:add_child(house_body_top)
house_body_top:set_material(thistle)
house_body_top:scale(8, 10, 10)
house_body_top:translate(-0.5,0,0)

house_body_left = gr.cube('house_body_left')
house:add_child(house_body_left)
house_body_left:set_material(thistle)
house_body_left:scale(7, 4, 10)
house_body_left:translate(0.8,0.6,0)

house_body_right = gr.cube('house_body_right')
house:add_child(house_body_right)
house_body_right:set_material(thistle)
house_body_right:scale(7, 4, 10)
house_body_right:translate(-1.8,0.6,0)

house_top_left = gr.cube('house_top_left')
house:add_child(house_top_left)
house_top_left:set_material(firebrick)
house_top_left:scale(5,5,10)
house_top_left:translate(1.8,0.6,0)
house_top_left:rotate('Z',45)

house_top_right = gr.cube('house_top_right')
house:add_child(house_top_right)
house_top_right:set_material(firebrick)
house_top_right:scale(5,5,10)
house_top_right:translate(-1.8,0.6,0)
house_top_right:rotate('Z',45)

house_top_middle = gr.cube('house_top_middle')
house:add_child(house_top_middle)
house_top_middle:set_material(blue)
house_top_middle:scale(6,5,10)
house_top_middle:translate(0,1.3,0)
house_top_middle:rotate('Z',45)

house_door = gr.cube('house_door')
house:add_child(house_door)
house_door:set_material(brown)
house_door:scale(3.5,4.5,1)
house_door:translate(-0.4,0,9.2)

house_window1 = gr.cube('house_window1')
house:add_child(house_window1)
house_window1:set_material(yellow)
house_window1:scale(2,2,1)
house_window1:translate(0.5,3.0,9.05)

house_window2 = gr.cube('house_window2')
house:add_child(house_window2)
house_window2:set_material(yellow)
house_window2:scale(2,2,1)
house_window2:translate(-1.3,3.0,9.05)

house_window3 = gr.cube('house_window3')
house:add_child(house_window3)
house_window3:set_material(yellow)
house_window3:scale(3,3,1)
house_window3:translate(-3.5,0.8,9.05)

house_window4 = gr.cube('house_window4')
house:add_child(house_window4)
house_window4:set_material(yellow)
house_window4:scale(3,3,1)
house_window4:translate(2.5,0.8,9.05)